package com.numberone.master.modules.orders.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.numberone.master.common.persistence.DataEntity;

/**
 * 充值流水订单Entity
 * @author ck
 * @version 2018-03-26
 */
public class RechargeOrder extends DataEntity<RechargeOrder> {
	
	private static final long serialVersionUID = 1L;
	private String officeId;		// 所属代理商
	private String iccid;		// 流量卡编号
	private String createById;		// 创建者
	private String updateById;		// 更新者
	private String money;		// 充值金额
	private Date rechargeTime;		// 充值时间
	private String payState;		// 支付状态 1：未支付 2：已支付
	private String rechargeState;		// 充值状态 1：未充值 2：已充值
	private String pkgType;		// 套餐类型
	private String pkg;		// 所属套餐
	private String orderNo;		// 订单号
	private String rechargeOrderNo;		// 充值订单号
	private String officeName; //代理商名称
	private String phoneNumber;
	
	public RechargeOrder() {
		super();
	}

	public RechargeOrder(String id){
		super(id);
	}

	@Length(min=0, max=20, message="所属代理商长度必须介于 0 和 20 之间")
	public String getOfficeId() {
		return officeId;
	}

	public void setOfficeId(String officeId) {
		this.officeId = officeId;
	}
	
	@Length(min=0, max=50, message="流量卡编号长度必须介于 0 和 50 之间")
	public String getIccid() {
		return iccid;
	}

	public void setIccid(String iccid) {
		this.iccid = iccid;
	}
	
	@Length(min=0, max=64, message="创建者长度必须介于 0 和 64 之间")
	public String getCreateById() {
		return createById;
	}

	public void setCreateById(String createById) {
		this.createById = createById;
	}
	
	@Length(min=0, max=64, message="更新者长度必须介于 0 和 64 之间")
	public String getUpdateById() {
		return updateById;
	}

	public void setUpdateById(String updateById) {
		this.updateById = updateById;
	}
	
	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRechargeTime() {
		return rechargeTime;
	}

	public void setRechargeTime(Date rechargeTime) {
		this.rechargeTime = rechargeTime;
	}
	
	@Length(min=0, max=1, message="支付状态 0：未支付 1：已支付长度必须介于 0 和 1 之间")
	public String getPayState() {
		return payState;
	}

	public void setPayState(String payState) {
		this.payState = payState;
	}
	
	@Length(min=0, max=1, message="充值状态 0：未充值 1：已充值长度必须介于 0 和 1 之间")
	public String getRechargeState() {
		return rechargeState;
	}

	public void setRechargeState(String rechargeState) {
		this.rechargeState = rechargeState;
	}
	
	@Length(min=0, max=1, message="套餐类型长度必须介于 0 和 1 之间")
	public String getPkgType() {
		return pkgType;
	}

	public void setPkgType(String pkgType) {
		this.pkgType = pkgType;
	}
	
	@Length(min=0, max=50, message="所属套餐长度必须介于 0 和 50 之间")
	public String getPkg() {
		return pkg;
	}

	public void setPkg(String pkg) {
		this.pkg = pkg;
	}
	
	@Length(min=0, max=50, message="订单号长度必须介于 0 和 50 之间")
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@Length(min=0, max=50, message="充值订单号长度必须介于 0 和 50 之间")
	public String getRechargeOrderNo() {
		return rechargeOrderNo;
	}

	public void setRechargeOrderNo(String rechargeOrderNo) {
		this.rechargeOrderNo = rechargeOrderNo;
	}

	public String getOfficeName() {
		return officeName;
	}

	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	
}